<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<div class="pages">
	<span class="page-total">共<b>${pager.totalCount}</b>条记录&nbsp;&nbsp;&nbsp;第<b class="curPage">${pager.pageNumber}</b>页&nbsp;&nbsp;&nbsp;共${pager.pageCount}页</span>
	<input type="hidden" id="pagerUrl" value="<%request.getParameter("pageUrl");%>" />
	<input type="hidden" name="pager.pageNumber" id="pageNumber" value="${pager.pageNumber}" />
	<input type="hidden" name="pager.orderBy" id="orderBy" value="${pager.orderBy}" />
	<input type="hidden" name="pager.order" id="order" value="${pager.order}" />
	<input type="hidden" name="pager.pageCount" id="pageCount" value="${pager.pageCount}" />
	
	<s:if test="pager.pageNumber!=1">
	<s:if test="pager.pageNumber!=2"><a href="javascript:;" class="prev" value="1">首页</a></s:if>
    <a href="javascript:;" class="prev" value="${pager.pageNumber-1}">上一页</a>
	</s:if>
	<s:if test="pager.pageNumber-5>=1"><a href="javascript:;" value="${pager.pageNumber-5}">${pager.pageNumber-5}</a></s:if>
	<s:if test="pager.pageNumber-4>=1"><a href="javascript:;" value="${pager.pageNumber-4}">${pager.pageNumber-4}</a></s:if>
	<s:if test="pager.pageNumber-3>=1"><a href="javascript:;" value="${pager.pageNumber-3}">${pager.pageNumber-3}</a></s:if>
	<s:if test="pager.pageNumber-2>=1"><a href="javascript:;" value="${pager.pageNumber-2}">${pager.pageNumber-2}</a></s:if>
	<s:if test="pager.pageNumber-1>=1"><a href="javascript:;" value="${pager.pageNumber-1}">${pager.pageNumber-1}</a></s:if>
	<a href="javascript:;" class="selected" value="${pager.pageNumber}">${pager.pageNumber}</a>
	<s:if test="pager.pageNumber+1<=pager.getPageCount()"><a href="javascript:;" value="${pager.pageNumber+1}">${pager.pageNumber+1}</a></s:if>
	<s:if test="pager.pageNumber+2<=pager.getPageCount()"><a href="javascript:;" value="${pager.pageNumber+2}">${pager.pageNumber+2}</a></s:if>
	<s:if test="pager.pageNumber+3<=pager.getPageCount()"><a href="javascript:;" value="${pager.pageNumber+3}">${pager.pageNumber+3}</a></s:if>
	<s:if test="pager.pageNumber+4<=pager.getPageCount()"><a href="javascript:;" value="${pager.pageNumber+4}">${pager.pageNumber+4}</a></s:if>
	<s:if test="pager.pageNumber+5<=pager.getPageCount()"><a href="javascript:;" value="${pager.pageNumber+5}">${pager.pageNumber+5}</a></s:if>
	
	<s:if test="pager.pageNumber<pager.getPageCount()">
    <a href="javascript:;" class="next" value="${pager.pageNumber+1}">下一页</a>
    <s:if test="pager.pageNumber!=pager.getPageCount()-1"><a href="javascript:;" class="next" value="${pager.getPageCount()}">末页</a></s:if>
    </s:if>
    <span class="extra">跳到第<input type="text" class="itext" id="topage"/>页</span>
    <a href="javascript:;" class="page-btn" value="topage">确定</a>
	
</div>